#!/bin/bash
echo "=====启用msgg域名====="
echo "======================"
mv /usr/local/apache2/conf/extra/httpd-vhosts-msgg.conf.bak /usr/local/apache2/conf/extra/httpd-vhosts-msgg.conf
serverctl.sh apache2 restart
curl http://msgg.i.qingcdn.com/account/login -x 127.1:80 -v|grep 'Msgg'

echo ""
echo "=====启用Msgg-Trigger====="
echo "=========================="
mv /etc/supervisor/conf.d/msgg-trigger.conf.bak /etc/supervisor/conf.d/msgg-trigger.conf
supervisorctl update
supervisorctl start msgg-trigger
